home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / grafik / 3d & render tools / irit / man / man6 / coerce.6 < prev    next >
Text File  |  1996-07-16  |  1KB  |  29 lines

  1. .TH COERCE
  2.  6 "IRIT Version 6.0" 
  3. .SH NAME
  4. COERCE
  5.  
  6.  
  7.  
  8.  AnyType COERCE( AnyType Object, ConstantType NewType )
  9.  
  10. Provides a coercion mechanism between different objects or object types.
  11. PointType, VectorType, PlaneType, CtlPtType can be all coerced to each
  12. other by using the NewType of POINT_TYPE, VECTOR_TYPE, PLANE_TYPE,
  13. or one of E1-E5, P1-P5 (CtlPtType). Similarly, CurveType, SurfaceType,
  14. TrimSrfType, and TrivarType can all be coerced to hold different
  15. CtlPtType of control points, or even different open end conditions from
  16. KV_PERIODIC to KV_FLOAT to KV_OPEN.
  17. If a scalar (E1 or P1) curve is coerced to E2 or P2 curve or
  18. a scalar (E1 or P1) surface is coerced to E3 or P3 surface, the Y (YZ)
  19. coordinate(s) is (are) updated to hold the parametric domain of the curve
  20. (surface).
  21.  
  22. Example:
  23.  
  24.     CrvE2 = COERCE( Crv, E2 );
  25.  
  26. coerce Crv to a new curve that will have an E2 CtlPtType control
  27. points. Coerction of a projective curve (P1-P5) to a Euclidean curve
  28. (E1-E5) does not preseve the shape of the curve.
  29.